package com.kt.uokos.yimo.service;

import com.kt.uokos.yimo.dao.Product;
import com.kt.uokos.yimo.example.ProductExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description TODO
 * @ClassName ProductService
 * @Date 2021/12/16 下午3:34
 * @Author KangTao
 */
public interface ProductService {

    List<Integer> queryCatId(Integer brandId,String keyword,Boolean isHot,Boolean isNew);

    List<Product> querySelective(Integer categoryId,Integer brandId,String keyword,Boolean isNew,Boolean isHot,Integer page,Integer limit,String sort,String order);

    List<Product> queryByCatId(Integer catId,int offset,int limit,String sort,String order);

    Product queryByProId(Integer id);

    List<Product> queryByCategory(List<Integer> categoryList, Integer offset, Integer limit, String sort, String order);

    List<Product> queryHotPro(Integer offset,Integer limit,String sort,String order);

    List<Product> queryNewPro(Integer offset,Integer limit,String sort,String order);

    long countByExample(ProductExample example);

    int deleteByExample(ProductExample example);

    int deleteByPrimaryKey(Integer id);

    Object insert(Product record);

    int updateByPrimaryKey(Product record);

    Object list(Integer goodsId, String goodsSn, String name, Integer page, Integer limit, String sort, String order);

    int count();
    Object detail(Integer id);

    List<Product> queryByIds(Integer[] ids);
}
